import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

import com.abigdreamer.swing.app.SwingUtil;
import com.abigdreamer.util.ImageUtil;

import craky.component.JImagePane;

public class test {

	public static void main(String[] args) throws Exception {
		JFrame frame = new JFrame();
		// frame.setLayout(null);
		frame.setLayout(null);
		// System.out.println(ResourcesManagement.getImage("ui/collapsed.gif",
		// 16, 16).getWidth(null));
		
//		SwingUtil.getImage("Themes/Default/MainPanel/search/main_search_bkg.png");

		JLabel label = new JLabel();

		frame.add(label);
		frame.setSize(500, 100);
		frame.setVisible(true);
//		try {
//			cut9Image(new File("C:\\Users\\Darkness\\Desktop\\test"), "main_search_bkg.png", 200, 45);
//		} catch (Exception e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}
}
